package com.mes.bac.backend.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "工件生命周期节点视图对象")
public class PieceLifecycleVO {

    @Schema(description = "工序名称")
    private String processName;

    @Schema(description = "工位名称")
    private String workstationName;

    @Schema(description = "状态描述 (发生了什么事件)")
    private String statusText;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "事件发生的时间戳")
    private LocalDateTime timestamp;
}